package com.res.share.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.res.share.model.ResCollection;
import com.res.share.model.ResFollow;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.res.share.model.dto.UserFollowModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户关注 Mapper 接口
 * </p>
 *
 * @author astupidcoder
 * @since 2021-10-22
 */
public interface ResFollowMapper extends BaseMapper<ResFollow> {

    List<Long> findUserResFollowList(@Param("beLongUserId") Integer beLongUserId, @Param("type") Integer type);

    IPage<UserFollowModel> mylikeuserList(@Param("page") Page<UserFollowModel> page,@Param("userId") Integer userId);

    IPage<UserFollowModel> likemeDetailList(@Param("page") Page<UserFollowModel> page, @Param("userId") Integer userId);

    void cancelLikeUser(@Param("followUserId") String followUserId, @Param("userId") Integer userId);

    IPage<ResCollection> mylikeuserResList(@Param("page") Page<ResCollection> page, @Param("userId") Integer userId);
}
